<!-- 编辑司机信息 -->
<template>
  <CommonDialog :visible="dialog.visible" @on-close="onClose" @on-show="onShow">
    <template #content>
      <p>这是内容</p>
    </template>
  </CommonDialog>
</template>

<script setup lang='ts'>
import CommonDialog from '@/components/CommonDialog/index.vue'
import useDialog from '@/hooks/useDialog'
//弹框属性
const { dialog, onShow, onClose } = useDialog()

const show = () => {
  onShow()
}

defineExpose({
  show
})
</script>
<style lang='scss' scoped></style>